import { request } from '@/utils/request';

// 申请新增产品
export function productApplyLogproviderAddProductLogApp(data) {
  return request({
    url: '/productApplyLog/providerAddProductLogApp',
    method: 'POST',
    data
  });
}
// 加入产品
export function providerProductApplyaddOrUpdateProviderProductApp(data) {
  return request({
    url: '/providerProductApply/addOrUpdateProviderProductApp',
    method: 'POST',
    data
  });
}
// 加入产品获取产品价格和保证金价格
export function providerProductApplygetProviderProductPrice(data) {
  return request({
    url: '/providerProductApply/getProviderProductPrice',
    method: 'POST',
    data
  });
}
// 加入产品-查询省市地区价格
export function regiongetAppProvinceCityTreeV2() {
  return request({
    url: '/region/getAppProvinceCityTreeV2',
    method: 'POST',
    data: {}
  });
}
// 服务商产品列表（在售或下架）
export function providerProductgetProviderProductPageApp(data) {
  return request(
    {
      url: '/providerProduct/getProviderProductPageApp',
      method: 'POST',
      data
    },
    { toast: false }
  );
}
// 服务商产品列表(待审核和驳回的)
export function providerProductApplygetProviderProductApplyRecordPageApp(data) {
  return request(
    {
      url: '/providerProductApply/getProviderProductApplyRecordPageApp',
      method: 'POST',
      data
    },
    { toast: false }
  );
}
// 服务商产品列表数量
export function providerProductgetProviderProductCount(data) {
  return request(
    {
      url: '/providerProduct/getProviderProductCount',
      method: 'POST',
      data
    },
    { toast: false }
  );
}
// 修改服务商产品状态
export function providerProductupdateProviderProductStatusApp(data) {
  return request({
    url: '/providerProduct/updateProviderProductStatusApp',
    method: 'POST',
    data
  });
}

// 接单排行列表
export function cluegetProviderProductReceiveClueRankList(data) {
  return request({
    url: '/clue/getProviderProductReceiveClueRankList',
    method: 'POST',
    data
  });
}

// 接单排行-产品排行列表
export function cluegetProductReceiveClueRankList(data) {
  return request({
    url: '/clue/getProductReceiveClueRankList',
    method: 'POST',
    data
  });
}
